import request from '@/utils/request';
// list
export const shipinleibieList = (params) => {
  return request({
    url: '/admin/shipinleibie/page',
    method: 'post',
    data: params,
  })
};
export const shipinleibieDetail = (id) => {
  return request({
    url: '/admin/shipinleibie/' + id,
    method: 'get',
  })
};
// add
export const shipinleibieSave = (params) => {
  return request({
    url: '/admin/shipinleibie',
    method: 'post',
    data: params,
  })
};
// updt
export const shipinleibieEdit = (id, params) => {
  return request({
    url: '/admin/shipinleibie/' + id,
    method: 'PATCH',
    data: params,
  })
};
// delete
export const shipinleibieDelete = (id) => {
  return request({
    url: '/admin/shipinleibie/' + id,
    method: 'delete',
  })
};
// pldel
export const shipinleibieDeleteList = (shipinleibies) => {
  return request({
    url: '/admin/shipinleibie/deleteList',
    data: { list: shipinleibies },
    method: 'post',
  })
};
// all
export const shipinleibieAllList = () => {
  return request({
    url: '/admin/shipinleibie',
    method: 'get',
  })
};

